package com.prism.moodme.app;

import java.awt.GridBagLayout;

import javax.swing.BoxLayout;
import javax.swing.JPanel;
import java.awt.Dimension;
import java.awt.FlowLayout;
import javax.swing.BorderFactory;
import javax.swing.border.BevelBorder;
import javax.swing.border.SoftBevelBorder;
public class ResultPane extends JPanel {

	private MapPanel mapPanel = null;
	private DayPanel dayPanel = null;
	private HourPanel hourPanel = null;

	/**
	 * This is the default constructor
	 */
	public ResultPane() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 *
	 * @return void
	 */
	private void initialize() {


		
		this.setSize(new Dimension(1029, 506));
		this.setBorder(new SoftBevelBorder(SoftBevelBorder.LOWERED));
		this.setPreferredSize(new Dimension(1029, 506));
		this.add(getMapPanel(), null);
		this.add(getDayPanel(), null);
		this.add(getHourPanel(), null);
	}

	/**
	 * This method initializes MapPanel
	 *
	 * @return javax.swing.JPanel
	 */
	MapPanel getMapPanel() {
		if (mapPanel == null) {
			FlowLayout flowLayout = new FlowLayout();
			flowLayout.setAlignment(FlowLayout.LEFT);
			flowLayout.setVgap(10);
			flowLayout.setHgap(10);
			mapPanel = new MapPanel();
			mapPanel.setLayout(flowLayout);
			mapPanel.setName("mapPanel");
		}
		return mapPanel;
	}

	/**
	 * This method initializes WeekFreqPanel
	 *
	 * @return javax.swing.JPanel
	 */
	DayPanel getDayPanel() {
		if (dayPanel == null) {
			FlowLayout flowLayout = new FlowLayout();
			flowLayout.setAlignment(FlowLayout.LEFT);
			flowLayout.setVgap(10);
			flowLayout.setHgap(10);
			dayPanel = new DayPanel();
			dayPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
			dayPanel.setLayout(flowLayout);
			dayPanel.setName("dayPanel");
		}
		return dayPanel;
	}

	/**
	 * This method initializes DayFreqPanel
	 *
	 * @return javax.swing.JPanel
	 */
	HourPanel getHourPanel() {
		if (hourPanel == null) {
			FlowLayout flowLayout = new FlowLayout();
			flowLayout.setAlignment(FlowLayout.LEFT);
			flowLayout.setVgap(10);
			flowLayout.setHgap(10);
			hourPanel = new HourPanel();
			hourPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
			hourPanel.setLayout(flowLayout);
			hourPanel.setName("hourPanel");
		}
		return hourPanel;
	}
}  //  @jve:decl-index=0:visual-constraint="10,10"
